#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QApplication>
#include <QVBoxLayout>
#include <QLabel>
#include <QPushButton>
#include <QFileSystemWatcher>
#include <QDir>
#include <QTimer>
#include <QDebug>
#include <QMouseEvent>
#include <QPaintEvent>
#include <QEvent>
#include <QRgb>
#include <QPainter>
#include <QtDebug>


QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT
public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private:
    Ui::MainWindow *ui;
    virtual void mouseMoveEvent(QMouseEvent *event);
    virtual void enterEvent(QEvent *event);
    virtual void leaveEvent(QEvent *event);
    virtual void paintEvent(QPaintEvent *event);

public slots:
    void setQImage(QImage);

private:
    QImage m_image;

    bool mouseState;

    QPoint m_pos;
    QPoint t_pos;
    int m_r;
    int m_g;
    int m_b;


};
#endif // MAINWINDOW_H
